export default {
    namespaced: true,
    state: {
        friendNoticeNum: 0,
        groupNoticeNum: 0,
        messageNotice: 0
    },
    mutations: {
        // tabbar好友申请数量
        SOCKET_notice_num(state, data) {
            state.friendNoticeNum = data.friendNoticeNum
            state.groupNoticeNum = data.groupNoticeNum
        },
        // tabbar未读消息总数
        getMessageNotice(state, num) {
            state.messageNotice = num
        },
        // 好友申请
        SOCKET_apply_notice(state, data) {
            state.friendNoticeNum = data.friendNoticeNum
            state.groupNoticeNum = data.groupNoticeNum
        },
        // 更改数量
        updateFriendNoticeNum(state) {
            state.friendNoticeNum = state.friendNoticeNum - 1
        },
        updateGroupNoticeNum(state) {
            state.groupNoticeNum = state.groupNoticeNum - 1
        }
    },
    actions: {
    },
    getters: {
    }
}